package com.hsgene.user.service.api;

/**
 * @Description: 版本管理service
 * @ProjectName: hdas-geneshop
 * @Package: com.hsgene.user.service.api
 * @Author: 江承良
 * @CreateDate: 2019/1/29 16:51
 * @Version: 1.0
 * Copyright: Copyright (c) 2019
 */

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.common.util.support.Pagination;
import com.hsgene.user.service.api.impl.VersionServiceImpl;
import com.hsgene.version.dto.VersionDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ms-mod-version", path = "/v1.0/genetic/testing",fallback = VersionServiceImpl.class )
public interface VersionService {

    /***
     *
     * @author jcl
     * @date 2019/1/29 17:10
     * @param page
     * @param size
     * @param versionNo
     * @param content
     * @param orderField
     * @param isRelease
     * @return
     */
    @GetMapping("/version")
    ApiResult<Pagination<VersionDto>> versionPages(@RequestParam(name = "page", defaultValue = "1") Integer page,
                                                   @RequestParam(name = "size", defaultValue = "15") Integer size,
                                                   @RequestParam(name = "versionNo", required = false) String versionNo,
                                                   @RequestParam(name = "content", required = false) String content,
                                                   @RequestParam(name = "orderField", defaultValue = "version_no") String orderField,
                                                   @RequestParam(name = "isRelease", defaultValue = "false") Boolean isRelease);
}
